package com.logAndSignConsummer.service;

import entity.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * The interface Store service feign.
 *
 * @author overlook
 * @date 2022 -04-16 20:13:44
 */
@FeignClient(name = "log-p")
public interface StoreServiceFeign {
    /**
     * Select all string.
     *
     * @param store the store
     * @return the string
     */
    @RequestMapping("/store/selectAll")
    @ResponseBody
    String selectAll(@RequestBody Store store);

    /**
     * Insert string.
     *
     * @param store the store
     * @return the string
     */
    @RequestMapping("/store/insertStore")
    @ResponseBody
    String insert(@RequestBody Store store);

    /**
     * Update string.
     *
     * @param store the store
     * @return the string
     */
    @RequestMapping("/store/updateStore")
    @ResponseBody
    String update(@RequestBody Store store);

    /**
     * Delete string.
     *
     * @param id the id
     * @return the string
     */
    @RequestMapping("/store/deleteStore/{id}")
    String delete(@PathVariable("id") String id);
}
